
 /**
 * 上海中赢金融信息服务有限公司
 * Copyright (c) 2017-2027 Chinazyjr,Inc.All Rights Reserved.
 */
package com.sys.midware.logger.jcl;

import java.io.File;

import org.apache.commons.logging.LogFactory;

import com.sys.midware.logger.Level;
import com.sys.midware.logger.Logger;
import com.sys.midware.logger.LoggerAdapter;

/**
 * <b>Description：</b> TODO <br/>
 * <b>ClassName：</b> JclLoggerAdapter <br/>
 * <b>@author：</b> jackyshang <br/>
 * <b>@date：</b> 2016年7月26日 下午6:05:53 <br/>
 * <b>@version: </b>  <br/>
 */
public class JclLoggerAdapter implements LoggerAdapter{
    public Logger getLogger(String key) {
        return new JclLogger(LogFactory.getLog(key));
    }

    public Logger getLogger(Class<?> key) {
        return new JclLogger(LogFactory.getLog(key));
    }

    private Level level;
    
    private File file;

    public void setLevel(Level level) {
        this.level = level;
    }

    public Level getLevel() {
        return level;
    }

    public File getFile() {
        return file;
    }

    public void setFile(File file) {
        this.file = file;
    }
}
